public class Person implements Comparable<Person>{
	private String name;
	public Person(String name) {
		this.name = name;
	}
	
	@Override
	public int compareTo(Person person) {
		return (this.name.compareToIgnoreCase(person.name));
	}
	
	@Override
	public boolean equals(Object person){
		return (this.compareTo((Person)person) == 0);
	}
	
	@Override
	public String toString() {
		return name;
	}
}